package com.ruoyi.constroller.company;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.company.domain.ComColumnType;
import com.ruoyi.company.service.IComColumnTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 栏目分类Controller
 *
 * @author ruoyi
 * @date 2024-02-11
 */
@RestController
@RequestMapping("/company/type")
public class ComColumnTypeController extends BaseController {
    @Autowired
    private IComColumnTypeService comColumnTypeService;

    /**
     * 查询栏目分类列表
     */
    @GetMapping("/listAll")
    public TableDataInfo listAll() {
        List<ComColumnType> list = comColumnTypeService.selectAll();
        return getDataTable(list);
    }

}
